# recommendation_history/serializers.py
from rest_framework import serializers

from problems.serializers import ProblemSerializer
from .models import RecommendationHistory
class RecommendationHistorySerializer(serializers.ModelSerializer):
    problem = ProblemSerializer()

    class Meta:
        model = RecommendationHistory
        fields = ['id', 'user', 'problem', 'timestamp', 'status']
